package communication;

import java.io.IOException;
import java.io.OutputStream;

 public class SerialWriter
    {
        OutputStream out;
        
        public SerialWriter ( OutputStream out )
        {
            this.out = out;
        }
        
        public void send(String toSend) {
        	try {
        		this.out.write(toSend.getBytes());
        	} catch ( IOException e )
            {
                e.printStackTrace();
            }
        	
        }
    }